import com.lzq.AppConfig;
import com.lzq.service.OrderService;
import com.spring.ApplicationContext;
import org.junit.Test;
public class test {
    @Test
    public void test(){
       //启动Spring
        ApplicationContext applicationContext = new ApplicationContext(AppConfig.class);

        //getBean()
        System.out.println(applicationContext.getBean("orderService"));
        System.out.println(applicationContext.getBean("orderService"));
        System.out.println(applicationContext.getBean("orderService"));
        System.out.println(applicationContext.getBean("orderService"));


    }
}
